<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript函数</title>
</head>
<body>
    <script>
        function func()
        {
            console.log("hello world");
        }

        func();

        function func_return()
        {
            return "hello heihei";
        }
        let a = func_return();
        console.log(a);

        //作用域跟其他语言类似
    </script> 
</body>
</html>